<div class="style-list clearfix" id="editor-style-{{$item['id']}}"><!-- start style-list -->
		<div class="content" >
			{{if $item['cate_id']>=50}}
				<div class="text-center"><!-- image resource -->
				<?PHP 
					if($item['coverimg']){
					echo $this->Html->image($item['coverimg'], array('title'=>$item['name'],'class'=>'lazy','style'=>'max-width:100%;',));
				}
				?>
				</div>
			{{else}}
				{{if $item['cate_id']==3 }} <!-- template && $item['coverimg'] -->
						<div class="pr">
							<a href="{{$this->Html->url('/editor_styles/'.date('Ymd',strtotime($item['created'])).'/'.$item['id'].'.html')}}" target="_blank">
								{{$this->Html->image($item['coverimg'],array('title'=>$item['name'],'class'=>'template-cover','data-id'=>$item['id'],'style'=>'max-width:100%;min-height:200px;','data-src'=>$item['coverimg'],))}}
							</a>
						</div>
				{{else}}
					<div class="editor-style-content  clearfix" {{if !$unuse_data_id}}data-id="{{$item['id']}}"{{/if}} data-name="{{htmlspecialchars($item['name'])}}" id="template-{{$item['id']}}">
						<?php
							$content = preg_replace('/class="\w+"/is','',$item['content']);
							$content = preg_replace('/data-\w+="\w+"/is','',$content);
							echo $content;
						?>
					</div>
				{{/if}}
			{{/if}}
		</div><!-- end content -->
			<div class="tools clearfix">
				<div class="title">
					<span><a href="{{$this->Html->url('/editor_styles/'.date('Ymd',strtotime($item['created'])).'/'.$item['id'].'.html')}}" target="_blank">{{$item['name']}}</a></span>
				</div>				
			</div><!-- end tools -->
			{{if $item['origin']==1}} <div class="origin" style="background:#ed603a;">原创</div> {{/if}}
</div><!-- end style-list -->